package test.noah.chery.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import test.noah.chery.entity.City;
import test.noah.chery.entity.Country;
import test.noah.chery.entity.Countrylanguage;
import test.noah.chery.mapper.CityMapper;
import test.noah.chery.mapper.CountryMapper;
import test.noah.chery.mapper.CountrylanguageMapper;


@Repository
public class CountryCityDaoImpl implements CountryCityDao{
	
	@Autowired
	private CountryMapper countrymapper;
	
	@Autowired
	private CityMapper citymapper;
	
	@Autowired
	private CountrylanguageMapper languagemapper;

	public List<Country> selectByCountry(Country country) {
		return countrymapper.selectByCountry(country);
	}

	public List<City> selectByCity(City city) {
		return citymapper.selectByCity(city);
	}

	public List<Countrylanguage> selectByCountrylanguage(
			Countrylanguage language) {
		return languagemapper.selectByCountrylanguage(language);
	}

}
